# -*- coding: utf-8 -*-
from jinja2 import Template
fsql = open('pg.sql', 'w')
with open('pg.jinja2.template', 'r') as f:
    template = Template(f.read())
    fsql.write(template.render(years=range(2020, 2009, -1)))
fsql.close()
